package com.cnpc.rightslogan.server.impl;

import com.cnpc.rightslogan.entity.User;
import com.cnpc.rightslogan.mapper.UserLoginMapper;
import com.cnpc.rightslogan.server.IUserLoginService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class UserLoginServiceImpl implements IUserLoginService {

    @Resource
    private UserLoginMapper userLoginMapper;

    @Override
    public User getUser(User user) {
        return userLoginMapper.selectOne(user);
    }

}
